#pragma once

#include "stdafx.h"
#include "stdSelfBulletLib.h"


class selfBullet
{
public:
	selfBullet(){}
	selfBullet(stdSelfBullet std, Point p, int power, int kind);
	selfBullet(stdSelfBullet std, Point p, int power,
		int kind, int angle);
	void setInformation(stdSelfBullet std, Point p, int power, int kind);
	void setInformation(stdSelfBullet std, Point p, int power,
		int kind, int angle);
	static void setPoint(Point* p);
	bool checkRemove()
	{
		return _reMove;
	}
	Point getNowPoint()
	{
		return _std.bitmap.p;
	}
	int getPower()
	{
		return _std.power;
	}
	float getRange()
	{
		return _std.bitmap.range;
	}
	void setRemove()
	{
		_reMove = true;
	}
	void updata();
	void draw();
protected:
private:
	inline void checkOut();
	inline void calcSpd();
	inline void move();
	int _angle;
	stdSelfBullet _std;
	bool _follow;
	bool _reMove;
	float vx,vy;
	int _kind;
	static Point* nowSelect;
};